module.exports = app => {
  const { config } = app
  const { dict, constant } = config
  const { ORDER_STATE_AWAIT_PAY } = constant
  const { Schema, model, getModelName, formatDate, pre } = app.jax.mongoose
  const modelName = getModelName(__filename)

  const schema = new Schema({
    targetId: { type: String, unique: true },
    name: String, // 姓名
    idCard: String, // 身份证号
    entryTime: Date, // 返乡时间
    town: String, // 镇
  })

  const Model = model(modelName, schema)

  return Model
}
